lastindexof java example